const fetchData=require('./fetchData');

it('Async await',async ()=>{
    let data=await fetchData();
    expect(data.code).toBe(200);
});


it('Async resolves',async ()=>{
    await expect(fetchData()).resolves.toMatchObject({code:200});
});